package com.ziyucoding.springboot.labs.largefileupload.exception;

import lombok.Getter;

/**
 * JSON 异常
 *
 * @author ziyucoding
 * @date 2023-06-02
 **/
@Getter
public class JsonException extends BaseException {

    private static final long serialVersionUID = 1411898061046062846L;

    /**
     * JsonException
     *
     * @param message
     */
    public JsonException(String message) {
        super(-1, message);
    }

    /**
     * JsonException
     *
     * @param code
     * @param message
     */
    public JsonException(Integer code, String message) {
        super(code, message);
    }

    /**
     * JsonException
     *
     * @param resultEnum
     */
    public JsonException(IErrorCode resultEnum) {
        super(resultEnum);
    }

    /**
     * JsonException
     *
     * @param message
     * @param cause
     */
    public JsonException(String message, Throwable cause) {
        super(message, cause);
    }

}
